package com.mc;

//import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootVersion;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.SpringVersion;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import lombok.extern.slf4j.Slf4j;


@EnableTransactionManagement
@SpringBootApplication
@Slf4j
//@EnableDubbo
public class DidApplication implements CommandLineRunner {

	public static void main(String[] args) {
		SpringApplication.run(DidApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {

		if (log.isInfoEnabled()) {
			log.info("当前Spring版本号:{}", SpringVersion.getVersion());
			log.info("当前SpringBoot版本号:{}", SpringBootVersion.getVersion());
		}

		log.info("------------项目启动完成------------");

	}

}
